
<div class="widget_wrapper">
  <div class="widget_header">
      <h3 class="icos_table">List Barang</h3>
      <%= link_to '+ Barang baru', new_barang_path, :style => "float:right; margin-top:5px; margin-right:5px;", :class => "btn" %>
  </div>

  <div class="widget_content no-padding">

    <div class="highligts_content">
      <div class="container-fluid">
        <table width="100%" cellspacing="0" cellpadding="0" class="default_table dynamicTable_one">
        <thead>
          <tr>
            <th>Kodebrg</th>
            <th>Namabrg</th>        
            <th>Unit</th>
            <th>Hargabeli</th>
            <th>Hargapokok</th>
            <th>Discmax</th>
            <th>Hargagrosir</th>
            <th>Hargaeceran</th>
            <th>Profiteceran</th>
            <th colspan="3">Action</th>
          </tr>
        </thead>
        <tbody>  
        <% @barangs.each do |barang| %>
          <tr>
            <td><%= barang.KodeBrg %></td>
            <td><%= barang.NamaBrg %></td>        
            <td><%= barang.Unit %></td>
            <td><%= barang.HargaBeli %></td>
            <td><%= barang.HargaPokok %></td>
            <td><%= barang.DiscMax %></td>
            <td><%= barang.HargaGrosir %></td>
            <td><%= barang.HargaEceran %></td>
            <td><%= barang.ProfitEceran %></td>
            <td><%= link_to 'Show', barang %></td>
            <td><%= link_to 'Edit', edit_barang_path(barang) %></td>
            <td><%= link_to 'Destroy', barang, confirm: 'Are you sure?', method: :delete %></td>
          </tr>
        <% end %>
        </tbody>
        </table>
      </div>
    </div>
  </div> 
</div> 
    
<br />


